import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '姓名',
    align: "center",
    sorter: true,
    dataIndex: 'name'
  },
  {
    title: '手机号',
    align: "center",
    sorter: true,
    dataIndex: 'phone'
  },
  {
    title: '关联区域表',
    align: "center",
    dataIndex: 'regionId',
  },
  {
    title: '岗位',
    align: "center",
    dataIndex: 'positionId_dictText'
  },
  {
    title: '业务类型，预留',
    align: "center",
    dataIndex: 'businessType'
  },
  {
    title: '状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  name: {title: '姓名',order: 0,view: 'text', type: 'string',},
  phone: {title: '手机号',order: 1,view: 'text', type: 'string',},
  regionId: {title: '关联区域表',order: 2,view: 'pca', type: 'string',},
  positionId: {title: '岗位',order: 3,view: 'list', type: 'string',dictTable: "f_sales_position", dictCode: 'id', dictText: 'name',},
  businessType: {title: '业务类型，预留',order: 4,view: 'text', type: 'string',},
  status: {title: '状态',order: 5,view: 'number', type: 'number',dictCode: 'employment_status',},
};
